module Classes {

    export class Bullet extends BaseObject {

        public owner: Player;

        constructor(owner) {
            super();
            this.owner = owner;
            this.config("bullet", "player");
            this.body.on("complete", this, this.onComplete);
        }

        public onLoop(): void {
            this.y -= this.speed;
        }

    }

}